 <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,member-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>IBeacon列表</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> Beacon-Car管理 <span class="c-gray en">&gt;</span> Beacon-Car清单 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<!--<div class="cl pd-5 bg-1 bk-gray mt-0"> <span class="l"><!--<a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>--> <!--<a href="javascript:;" onclick="member_add('添加Beacon-Car','Beacon_Caradd.php','','510')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加Beacon-Car</a> --><!--</span> <span class="r">按加入日期范围：<input type="text" onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}'})" id="datemin" class="input-text Wdate" style="width:120px;">-<input type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d'})" id="datemax" class="input-text Wdate" style="width:120px;"><input type="text" class="input-text" style="width:250px" placeholder="输入备注、MAC" id="" name=""> <button type="button" class="btn btn-success radius" id="searchbtn" name=""><i class="Hui-iconfont">&#xe665;</i> 给我搜</button></span> </div>-->
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="20">ID</th>
				<th width="40">主车型</th>
				<th width="60">细分车型</th>
				<th width="40">URL</th>
				<th width="40">ICO图标</th>
				<th width="40">主标题</th>
				<th width="40">辅标题</th>
				<th width="40">Enable</th>
				<th width="10">配置</th>
			</tr>
		</thead>
		<tbody>
				<tr class="text-c">
				<td><input type="checkbox" value="45" name=""></td>
				<td>45</td>
				<td>A3</td>
				<td>A3-Limousine</td>
				<td>http://m.audi.cn/cn/mobile/zh/models/a3/a3_limousine.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221203869/0' style="height:80px;width:80px;"></td>
				<td>全新奥迪A3</td>
				<td>未来先见</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','45')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','45')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="46" name=""></td>
				<td>46</td>
				<td>A3</td>
				<td>A3-Cabriolet</td>
				<td>http://www.audi.cn/cn/web/zh/models/a3/a3_cabriolet.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221203869/0' style="height:80px;width:80px;"></td>
				<td>全新奥迪A3</td>
				<td>向上挥洒自由</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','46')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','46')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="49" name=""></td>
				<td>49</td>
				<td>A4L</td>
				<td>A4L</td>
				<td>http://www.audi.cn/cn/web/zh/models/a4/a4l.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221265312/0' style="height:80px;width:80px;"></td>
				<td>新奥迪A4L</td>
				<td>驾驭未来</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','49')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','49')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="59" name=""></td>
				<td>59</td>
				<td>A6L</td>
				<td>A6L</td>
				<td>http://www.audi.cn/cn/web/zh/models/a6/a6l.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221054964/0' style="height:80px;width:80px;"></td>
				<td>奥迪A6L</td>
				<td>超级座•驾</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','59')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','59')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="53" name=""></td>
				<td>53</td>
				<td>A5</td>
				<td>A5-Cabriolet</td>
				<td>http://www.audi.cn/cn/web/zh/models/a5/a5_cabriolet.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221021063/0' style="height:80px;width:80px;"></td>
				<td>奥迪A5</td>
				<td>演绎生活美学</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','53')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','53')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="66" name=""></td>
				<td>66</td>
				<td>A8L</td>
				<td>A8L</td>
				<td>http://www.audi.cn/cn/web/zh/models/a8/a8l.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221076304/0' style="height:80px;width:80px;"></td>
				<td>奥迪A8L</td>
				<td>尊贵再进化</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','66')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','66')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="70" name=""></td>
				<td>70</td>
				<td>Q3</td>
				<td>Q3</td>
				<td>http://www.audi.cn/cn/web/zh/models/q3/q3.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221223905/0' style="height:80px;width:80px;"></td>
				<td>全新奥迪Q3</td>
				<td>潮流重塑</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','70')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','70')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="71" name=""></td>
				<td>71</td>
				<td>Q5</td>
				<td>Q5</td>
				<td>http://www.audi.cn/cn/web/zh/models/q5/q5.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221100112/0' style="height:80px;width:80px;"></td>
				<td>新奥迪Q5</td>
				<td>进•享自由</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','71')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','71')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="73" name=""></td>
				<td>73</td>
				<td>Q5</td>
				<td>Q5</td>
				<td>http://www.audi.cn/cn/web/zh/models/q5/q5.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221100112/0' style="height:80px;width:80px;"></td>
				<td>新奥迪Q5</td>
				<td>进•享自由</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','73')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','73')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
				<tr class="text-c">
				<td><input type="checkbox" value="74" name=""></td>
				<td>74</td>
				<td>Q7</td>
				<td>Q7</td>
				<td>http://www.audi.cn/cn/web/zh/models/q7/q7.html</td>
				<td><img src='http://p.qpic.cn/ecc_merchant/0/w_pic_1447221122027/0' style="height:80px;width:80px;"></td>
				<td>奥迪Q7</td>
				<td>势为强者</td>
				<td>1</td>
				<td class="td-manage"> <a title="配置信息" href="javascript:;" onclick="Car_edit('编辑','74')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a><!--<a title="改密码" href="javascript:;" onclick="member_edit('编辑','74')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6df;</i></a> <a style="text-decoration:none" class="ml-5" onClick="change_password('修改密码','change-password.html','10001','600','270')" href="javascript:;" title="修改密码"><i class="Hui-iconfont">&#xe63f;</i></a> <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a>--></td>
			</tr>
			</tbody>
	</table>
	</div>
</div>
<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/lib/layer/1.9.3/layer.js"></script>
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script> 
<script type="text/javascript" src="/lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
<script type="text/javascript" src="/js/H-ui.js"></script> 
<script type="text/javascript" src="/js/H-ui.admin.js"></script> 
<script type="text/javascript">
$(function(){
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,0]}// 制定列不参与排序
		]
	});
	$('.table-sort tbody').on( 'click', 'tr', function () {
		if ( $(this).hasClass('selected') ) {
			$(this).removeClass('selected');
		}
		else {
			table.$('tr.selected').removeClass('selected');
			$(this).addClass('selected');
		}
	});
});
/*用户-添加*/
function member_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*用户-查看*/
function member_show(title,url,w,h){
	layer_show(title,url,w,h);
}
/*用户-停用*/
function member_stop(obj,id){
	layer.confirm('确认要停用吗？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_start(this,id)" href="javascript:;" title="启用"><i class="Hui-iconfont">&#xe6e1;</i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已停用</span>');
		$(obj).remove();
		layer.msg('已停用!',{icon: 6,time:1000});
		ajRusult=$.ajax({url:"Admin_ajax.php?act=editRight&op=stop&realname="+id,async:false});
	});
}

/*用户-启用*/
function member_start(obj,id){
	layer.confirm('确认要启用吗？',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="member_stop(this,id)" href="javascript:;" title="停用"><i class="Hui-iconfont">&#xe631;</i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已启用</span>');
		$(obj).remove();
		layer.msg('已启用!',{icon: 6,time:1000});
		ajRusult=$.ajax({url:"Admin_ajax.php?act=editRight&op=active&realname="+id,async:false});
	});
}
/*用户-编辑*/
function member_edit(title,realname){
	var pwd=prompt("请为"+realname+"输入新密码","");
	if(pwd!=null){
		if(pwd!=""){
			ajRusult=$.ajax({url:"Admin_ajax.php?act=editpassword&realname="+realname+"&sp="+pwd,async:false});
			layer.msg("修改密码成功！",{icon: 1,time:2000});
		}else{
			layer.msg("密码不能空！",{icon: 5,time:2000});
		}
	}
}

/*车型url-修改*/
function Car_edit(title,id){
	layer_show(title,'Beacon_CarUrlEdit.php?id='+id,800,560);
}
/*密码-修改*/
function change_password(title,url,id,w,h){
	layer_show(title,url,w,h);	
}
/*用户-删除*/
function member_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$(obj).parents("tr").remove();
		layer.msg('已删除!',{icon:1,time:1000});
	});
}
</script> 
</body>
</html>